import Vue from "vue";
import moment from 'moment'
Vue.use(require('vue-moment'));
Vue.prototype.moment = moment

Vue.filter('datetimeFormat',function(dateStr,pattern='YYYY-MM-DD HH:mm:ss'){
  return moment(dateStr).utc().utcOffset(-8).format(pattern);
})